package cn.topevery.garden.entity.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 *  视图
 *
 * @author code-generate
 * @date 2022-01-07
 */
@Data
@ApiModel(value = "Alarm 视图", description = " 视图")
public class AlarmVO implements Serializable{
    /**
     * 自增id
     */
    private Integer id;

        /**
     * 预警编号
     */
    @ApiModelProperty(value = "预警编号")
    @Excel(name = "预警编号", orderNum = "0")
    private String alarmCode;

    /**
     * 0 预警 1 报警
     */
    @ApiModelProperty(value = "0 预警 1 报警")
    @Excel(name = "0 预警 1 报警", orderNum = "0")
    private Byte type;

    /**
     * 预警内容
     */
    @ApiModelProperty(value = "预警内容")
    @Excel(name = "预警内容", orderNum = "0")
    private String alarmContent;

    /**
     * 预警对象类型  数据字典
     */
    @ApiModelProperty(value = "预警对象类型  数据字典")
    @Excel(name = "预警对象类型  数据字典", orderNum = "0")
    private String objType;

    /**
     * 预警对象Id 
     */
    @ApiModelProperty(value = "预警对象Id ")
    @Excel(name = "预警对象Id ", orderNum = "0")
    private String objId;

    /**
     * 预警对象名称
     */
    @ApiModelProperty(value = "预警对象名称")
    @Excel(name = "预警对象名称", orderNum = "0")
    private String objName;

    /**
     * 预警时间 
     */
    @ApiModelProperty(value = "预警时间 ")
    @Excel(name = "预警时间 ", orderNum = "0")
    private LocalDate alarmDate;

    /**
     * 预留状态位 
     */
    @ApiModelProperty(value = "预留状态位 ")
    @Excel(name = "预留状态位 ", orderNum = "0")
    private Integer state;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Excel(name = "备注", orderNum = "0")
    private String remark;

    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    @Excel(name = "修改人", orderNum = "0")
    private String dbUpdateId;

    /**
     * 修改时间 
     */
    @ApiModelProperty(value = "修改时间 ")
    @Excel(name = "修改时间 ", orderNum = "0")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime dbUpdateDate;

    /**
     * 坐标X
     */
    @ApiModelProperty(value = "坐标X")
    @Excel(name = "坐标X", orderNum = "0")
    private Double lng;

    /**
     * 坐标Y
     */
    @ApiModelProperty(value = "坐标Y")
    @Excel(name = "坐标Y", orderNum = "0")
    private Double lat;


    private String c_obj_type_name;

}
